package com.black.service.controller;


import com.alibaba.fastjson2.JSONObject;
import com.black.protocol.Response;
import com.black.service.service.DataService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/service/data")
public class DataController {

    @Resource
    private DataService dataService;

    @PostMapping("/list")
    public Response<?> list(@RequestBody JSONObject param) {
        return dataService.list(param);
    }
}
